package com.by.clone;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/9 20:28
 * @注释
 */
public class DeepMain {
    public static void main(String[] args) throws CloneNotSupportedException {
        Deep deep=new Deep(new int[]{1,2,3});
        Deep cloned= (Deep) deep.clone();
        //修改值
        cloned.arr[0]=533521;
        System.out.println(deep.arr[0]);
        System.out.println(cloned.arr[0]);
        System.out.println(deep==cloned);
        List<String> num=new ArrayList<>();
        num.add("1");
        num.add("2");
        System.out.println(num.toArray());
    }
}
